<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRcMessageTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('rc_message', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('姓名');
            $table->string('phone')->default('')->comment('电话');
            $table->string('city')->default('')->comment('城市');
            $table->string('dealer')->default('')->comment('经销商');
            $table->string('car')->default('')->comment('意向车型');
            $table->string('appointment_time')->default('')->comment('试驾时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('rc_message');
    }
}
